package com.hujing.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class LogApplication {

    private static final Logger logger = LoggerFactory.getLogger(LogApplication.class);

    public static void main(String[] args) {
//        try {
//            int i = 10/0;
//        } catch (Exception e) {
//            logger.error("Error occurred：{}",e.getMessage(),e);
//        }
        SpringApplication.run(LogApplication.class, args);
    }

}
